home *** CD-ROM | disk | FTP | other *** search
- package a;
-
- import java.io.IOException;
-
- public abstract class InputBuffer {
- // $FF: renamed from: a int
- int field_0;
- // $FF: renamed from: b int
- int field_1;
- // $FF: renamed from: c int
- int field_2;
- // $FF: renamed from: d a.c
- c field_3 = new c(1);
-
- public void commit() {
- --this.field_0;
- }
-
- public void consume() {
- ++this.field_2;
- }
-
- public abstract void fill(int var1) throws IOException;
-
- public String getLAChars() {
- StringBuffer var1 = new StringBuffer();
-
- for(int var2 = this.field_1; var2 < this.field_3.d; ++var2) {
- var1.append(this.field_3.elementAt(var2));
- }
-
- return var1.toString();
- }
-
- public String getMarkedChars() {
- StringBuffer var1 = new StringBuffer();
-
- for(int var2 = 0; var2 < this.field_1; ++var2) {
- var1.append(this.field_3.elementAt(var2));
- }
-
- return var1.toString();
- }
-
- public boolean isMarked() {
- return this.field_0 != 0;
- }
-
- // $FF: renamed from: LA (int) char
- public char method_0(int var1) throws IOException {
- this.fill(var1);
- return this.field_3.elementAt(this.field_1 + var1 - 1);
- }
-
- public int mark() {
- this.method_1();
- ++this.field_0;
- return this.field_1;
- }
-
- public void rewind(int var1) {
- this.method_1();
- this.field_1 = var1;
- --this.field_0;
- }
-
- // $FF: renamed from: a () void
- protected void method_1() {
- for(; this.field_2 > 0; --this.field_2) {
- if (this.field_0 > 0) {
- ++this.field_1;
- } else {
- this.field_3.removeFirst();
- }
- }
-
- }
- }
-